***************************************************************************
****                   BASCOM 8051 History List                       ****
***************************************************************************
2.0.16.0
                    - dat files added for 8051F410.dat and 8051F911.DAT		
                    - cpeek() did not accept a constant word address. also, 
                      when using an xram variable as parameter, the wrong value was returned.			
                    - flash read/write demo added for 8051F911
                    - win7/win8 supported

2.0.15.0            - config spi=soft has a delay parameter for slower clock generation
2.0.14.0            - version was not set to 2.0.14.0
                    - when eeprom is written, the ready flag will not be first tested for 0, then for 1.
                      this will make sure the write cycle is ready.
2.0.14.0
                    - Help revised.
                    - you can add different LPT address in Options. This for some special external LPT/IO cards.
                    - SOUNDEXT added for better generation of sounds.
                      The documentation was wrong for the SOUND statement. The parameters (freq and duration) were revered.
                      SoundExt uses a 16 bit software counter for both the freq. and the duration.
                      A higher value result in higher freq. This in contrast with the sound statement.
                    - WAITMSE added that supports 16 bit value instead of a byte.
                      This mean you can use it for longer delays. The old WAITMS is still supported.
                    - timing code had a problem for some chips.
                    - software UART range extended for low baud rates(with high xtal freq)
                    - RESET WATCHDOG changed wrong register for 89S8253
                    - conditional compilation enhanced.
                      for good evaluation you had to test for the variable value like :
                      #if test=1
                      But now you can also use :
                      #if test
                      this will test for test=%TRUE , or test is non-zero.
                      Thus when you now ommit the explicit test or value, the constant will be tested for non-zero.
2.0.13.0
                    - Vista and Xp-64 supported
                    - Rewrote timing code to support the Silabs chips.
                    - Added support for 89S8253 , 89S2051, 89S4051
                      Use the STK200 or Sample Electronics programmer in order to program these chips.
                    - Print(preview) can be in color, added line numbers, syntax
                    - IDE has a floating/dockable error window
                    - Some old win31 icons replaced
                    - NOICE fix for data, ram and bit segments.
                     
2.0.12.0
                    - (programming) support for 89S8253 added
                    - IDE updated.
                    - graphical lcd enhanced with other modes
                    - $INITMICRO directive added to put in your own initcode that is ran before other bascom code.
                    Config Printmode = Set , Printdelay = 200
                    - Added support for 20*4A LCD display. Address lines 1-4 are  : 0, &H20, &H40 , &H60 
                    - The DATA line expression option can break old working code where "" characters are used that do
                      not confirm with the BASIC rules. Use this in your data lines for strings:
                      DATA "{034}{034}%{034}"$
                      The {034} will be replaced with a byte with ascii value of 34 in this case.
                      By adding the $, the data line will not be seen as an expression but as normal data.
                      The $ will not end up into the data line.  Notice that you can embed other characters as well {027} to insert an
                      escape char.

2.11                - Added 1wire function 1wsearchfirst() , 1wsearchnext() and 1wirecount().
                    - High() and Low() statements! fixed. They did not work with arrays.
                    - bit handling improved. ACC is not used anymore for bit addressable registers.
2.10                - $WAIT will insert a 1 second delay. This is intended to be used with the 89s8252
                    - When RESTORE was done with a GOSUB, the right label address was not loaded.
                    - hex files do not need sequential addresses. This to support hex files generated by assembler,other compilers.
                    - $LCDRS added for Elektor 89S8252 board. See help.
                    - Flash programming support added for other cygnal chips like F020.
                      Should work for all cygnal chips now using the JTAG interface
                    - HTML Help window can be remembered now. I hacked into the HTML help engine and this is how you can save the position:
                      open HTML Help by pressing F1. It will display with a default size.
                      Size and move it to the position you like
                      Exit BASCOM, (do not close the HTML Help window)
                      Now anytime you press F1, it will show up at the saved position.
2.09                  This is not the best solution but there is no other way since there is no normal way the HTML engine allows to save the position.
                    - Added support for the futurelec programmer.
                    - CLOCKDIV in the DAT files is now used for various speed calculations. A 100% compatible 8051 micro has a clock division of 12. WHen CLOCKDIV is ommited the default of 12 is used. Most newer chips have a clockdivision of 6 or 4 so the chip runs faster. I did not looked up all the clock divisions of the supported DAT files so when a value is wrong please let me know so it can be adjusted.
                    - GETR5 has the toggle bit in the command at bit position 6 now. In previous releases it was cleared.
                    - DATA is extended with expressions.
                      Either use the old syntax or use the new option:
                      DATA INTEGER(15 * constval + x) 'etc
                      When using an expression for the constant it must be a function of type LONG,INTEGER,WORD or SINGLE.
                      Do not mix the old and the new syntax on the same DATA line.
                      DATA 15%,1234&,5.0!  ' integer long and single data in old syntax
                      DATA WORD(15) , LONG(1000+2334) , SINGLE(1.0 * 5) ' new syntax option
                      Constants can be part of the expression
                    - cygnal JTAG programming support added. Also DAT file added for the F000.
                      Tested with the SE-8051FAP from Sample Electronics
                    - CONFIG SPI has a new option for the SOFT mode: SPIOUTEDGE = FALLING/RISING
                      FALLING is default and will be used when nothing is specified. It is also compatible with previous versions.
                    - Simulator has separate button for TI and RI serial interrupts flags now.
                    - In Options, Environment, Font the colors for numbers and strings can be selected too now.
                      New setting will be active once a new editor window is created.
                    - Added HTML Help. You can choose this option from the Options, Environment IDE settings
                    - Added auto update option to the IDE. This replace the separate update utility.
                      See the help file.
                    - Simulator int. buttons were to small to show the names. The size is automatic adjusted now.
                    - SHIFTIN with a XRAM variable caused a reset since internal memory was overwritten by not setting the number of bytes to read.
2.08     02/27/2001 - The change to the serial port is reversed so it is as original.
                      I added a sample named serialbuf.bas that shows how to use
                      serial interrupts. It has a different implementation of the sendchar routine.
                    - Added clockout option to the timer2(8032 compatible)
                      Config Timer2 = Timer , Mode = 5 , Clockout = 300000
                      This will generate a clock output with 300000 Hz.
                      When the clock can not be generated you get an error 224.
                    - Optimised some bit handling code. Also resolved a bit addressing error that slept in with a recent feature.
                    - RAM is cleared now at start up.
                      So RAM variables dont have to be initilised to 0 in code.
                      Use $NORAMCLEAR to disable this feature.
                      Also ljmp .basic will perform a reset by software.
                    - Fixed val() problem introduced with latest check
2.07
                    - New: High(word) = value , will set the MSB of a integer/word
                    - Added option to sim to show precise timing or not.
                    - RS484 support changed: Added small delay after sending the last byte.
                    - SPIIN now sends the data first so it acts as a SPIMOVE routine.
                      This is only true for the HARDWARE SPI configuration with the 89S8252.
                      See spihard.bas example
                    - Tools, Triscend converter added. This will convert a Triscend fastchip .H file, into
                      the triscend.dat file and a BASCOM include file with the same name and extension .INC
                      Beta, so no details available yet othet than : www.triscend.com  look for E5 chips.
                    - Added _BUILDVERSION constant for usage with conditional compilation.
                    - labels were not correct recognized in the IDE Label lookup.
                    - when doing math on word/int/long with a constant, the calculation was not performed. The right variable was seen
                      as numeric too.
                    - Changes in 2.06 in SHIFT caused error for shifting without number of shifts specified.

2.06     01/28/2001
                    - Added conditional compilation:
                      Depending on the expression code will be compiled or not
                      const beta = -1
                      #if beta = -1
                          Print "Hello"
                      #else
                          Print "world"
                      #endif
                      Note that there is NO THEN after the #if <expression>
                      You can nest conditions up to 25 levels. Enough to make your code real unreadable :-)
                      Const beta = 1
                      Const beta2 = beta + 1
                      #if beta =1
                        Print "beta"
                        #if (beta2 = beta+1) and (12>3)
                          print "of course 12 is greather than 3"
                        #else
                          print "alter beta2 to beta2=0 and see what happens"
                        #endif
                      #endif
                    - Added expressions to CONST defenitions:
                      const x = 5 *2(3*8)  ' for example
                      const y = x + sin(10) ' will result in a single constant
                      You can use previous defined constants in a new constant defenition
                      The above works only for CONST defenition!
                      Next step will be to assign a variable this way using only constants and after that to use it with variables too as part of the expression

                    - Speed up PG302 programming.
                    - The report window did not copied the Error-tab information to the clipboard.
                    - AVG() function returns the average of a BYTE array into a word or integer.
                    - 2.05 feature ,using floating point constants resulted in an error when assigned to a byte/word
                    - In order to use RS485, I changed the data send routine. Now it writes the byte and then waits until TI is ready.
                    - When opening a file, the path stays the same when you open another file.
                      Only the IDE directory setting when filled, will override this. So leave it empty when you
                      like the path to be remembered.
                    - Added Rhombus SCE-51 Emulator support.
                      Select from the programmer list to enables it. See help.
2.05     BETA
                    - Serial interrupt is simulation when TI or RI is set.
                    - Helpfile position is saved now between sessions.
                    - Added bit index to the NOT operator : bb.1 =  NOT bb.x
                    - 80552.dat file changed + added : enable/disable i2c,timer2,ct0,ct1,ct2,adc,cm0,cm1,cm2
                    - SHIFT checks for the number of shifts beeing 0 now.
                    - optimized/cleaned setting/resetting bits
                      Bytx.1 = 1 generated unneeded code.
                    - Numeric variables maybe assigned by using constants or numeric values.
                      The compiler will store the result of the calculation in the variable.
                      var = 1200 / 12 'same as var = 100
			    As for other math you may use only one calculation. Working on something much better.
                    - Array(x) = array(x) OR/AND/XOR failed! In the 2.04 update some optimisation was done and this bug was introduced.
                    - MCS Flashprogrammer failed with autoprogram.
                    - The Getad() function for the 812 micro is changed. It needs an ISR in order to work. So the mcs.lib has been changed too.
                      Note that global interrupts must be enabled for the Getad() function in the 812. (ENABLE INTERRUPTS)
                    - Added DATA ORDER option to the software SPI.
                    - Auto programming Lockbits with PG302 failed.
                    - when you have strange behaving forms you can delete the following entry from the registry with REGEDIT.
                      HKEY_CURRENT_USER\Software\MCS Electronics\BASCOM-8051
                      Under this key you can find formstate info of the different windows. You can delete the whole BASCOM-8051 key.
                      When you never used REGEDIT or are not familiair with it DON'T DO THIS because you can damage your OS.
                    - using chr() in combination with printhex did not work. The whole line was interpreted as being hex values.
                      So printhex var ; chr(13) ; printed 0500 for example.
                    - Added $RAMTRON option. This allows to use a EEPROM from www.ramtron.com in place
                      of XRAM! At the moment it is Beta and works for the 89S8252 only!
                      It allows you to use XRAM that is stored in the EEPROM. THis way you only need
                      a small 8 pin chip and no latch and XRAM chip. The Ramtron memory can be written at 5MHz.
                      It can be written many times but a loop of writing a 'XRAM variable' this way will work for a few years.
                      So use some kind of logic to write only to the var when needed!!!
                    - Using old syntax for CONST : Dim x as const 174 did not work for multiple values.
                      I2C.bas example showed this problem. Preferred syntax is however: CONST var = ...
2.04     10/16/2000 - Added Graphic LCD support. See CONFIG GRAPGLCD in the helpfile for more details.
                    - ReadMagcard has a timeout parameter now.
                    - Fixed error in calling Bit_2_C for bytes. The address had to be incremented with 1.
                      This had effects on using bits with bytes only.
                    - Fixed error in multiple AND OR usage like If x =1 and y=2. Wrong jump address was generated.
                    - The ISP programming window had the wrong caption(copied from AVR)
                    - Added mylib.bas and ltc1091.LIB as a sample for writing own libs.
2.03     10/01/2000
                    - Graphic LCD was planned for this release but I could not test the code.
                      I finally received a T6963C compatible display so it will be released soon after this release.
                    - Added syntax help to the IDE.
                    - The labels and subs are sorted now in the IDE.
                    - Added READMAGCARD routine to read magnetic cards with 5 bit coding.
                      7-bit coding will be added later.
                      See the magcard.bas sample
                    - WHen an error was found with include files the wrong file was displayed.
                    - TIMEOUT option changed.
                      Use $TIMEOUT directive to specify that you will use TIMEOUT
                      Now INPUT , INPUTBIN etc. can have an additional parameter TIMEOUT = ...
                      New is that the timeout check is only performed when you specify the TIMEOUT paramater.
                      This is done by passing in bit0 (20.0) the flag.
                      This means that INPUT "Name ", s  TIMEOUT = 1000000 'will timeout
                      and that        INPUT "NAME ", s  'will not time out when both lines are used.
                      The used LONG is also not needed anymore which will save you 4 bytes of IRAM.
                      Timeout can also be used on the software uart GET statement.
!!IMPORTANT!!!!!    - The DAT files are changed!
                      Interrupt 2B was always used for TIMER2 but as new micros use 2B for
                      other interrupts I had to change it.
                      So the vector name of interrupt address 2B is now in the xxx.DAT file
                      You need to install the new DAT files because I added the new names where needed.
                      When you wrote your own DAT files you must also changed them.
                    - Changed support for 87LPC764. This micro has xtal/6 instead of /12.
                      This means that code is executed twice as fast.So baudrate was not calculated right.
                      Also the GETRC5 routine used P3.2 always and not the selection from the Compiler I2C options.
                      Now it does so you can select P1.3 for INT0 with the 87LPC764.
                    - Added support for STK200/300 programmers.
                      Now you can program the 89S8253 and 89S53 very fast!
                    - Also support for the Sample Electronics simple cable programmer is now provided.
                      This means that you can program the 8252 with only a LPT cable!
                    - Added NOCS option to CONFIG SPI.
                      It will not reset and set the CS. You can do this manually.
                    - Using many DIM statements caused a gpf.
2.02     07/10/2000 - GetAd() for the 80552 had an error in the library.
                    - A problem with variable bit support solved.
                      $TIFF removes the first 152 bytes now as Peter Huijssen found out this gives the right result.
2.01     06/30/2000 - For this edition a new auto update program is available.

C                   - Added TIFF inclusion support for the upcoming Graphic LCD support.
                      Label:
                      $tiff = "C:\Test.tiff"    'include tiff file. Must be 128*64 pixels, black & white
                      The tiff header(first 25 bytes) is not included. Not tested!
S                   - Added LOG and LOG10 to the sincos.bas sample file.
                      This shows how to get the log or log10 of a number between 0 and 2.
I                   - Added programming support for the SE-812 from Sample Electronics.
                      This is a programmer for the adcu812. Look at www.sample.co.kr for more details.
                      Of course other adcu812 programmer may be used too.
I                   - Added Save desktop button to the toolbar in the IDE.
                      This saves the position of the opened edit windows.
                      When you restart BASCOM these files wil be loaded automatic.
C                   - Added NOINT option to the SOUND statement.
                      Sound pin,duration,freq [,NOINT]
                      The optional NOINT will disable interrupts during the sound.
C                   - Changed FOR..NEXT. For a down counting loop you needed DOWNTO.
                      You can now use TO instead of DOWNTO but the step must be specified to be negative.
                      For a = 10 To 1 STEP -1  'for example
                      Next
C                   - Added ,INVERTED option to the software UART. Look at OPEN/CLOSE.
                      NOT TESTED in hardware. Feedback appreciated
I                   - Added a jumpto label to the editor. It is placed beside the sub routine select box.
I                   - The position of the edit windows are stored and restored now.
C                   - Added SPC() function. Use this in combination with PRINT and LCD to print spaces.
                      PRINT "Hello" ; SPC(3) ; "World" print Hello   World
I                   - Fixed movx a,@r0-r1 and movx @ro-r1,a in simulator
I                   - Added copy button to the report so you can topy the content to the clipboard.
I                   - Added support for printing in color. Select it from the
                      printer options tab. The preview screen does not work with color.
                      So you must click the Print icon in the menu bar.
                      Printing from the preview window prints in black & white

2.0
BETA
C                   - CONFIG GETRC = 10 'will charge the capacitor for 10 mS.
                      This is the default value when CONFIG is not used.
                      For other capacitors you can change the delay time.
C                   - Added REPLACE to replace a single character in a string:
                      replace string,old,new
                      Old and new are bytes or string constants.
                      All characters with the OLD value are replaced with the NEW value
                      You can use this for example to convert a single output 12.100 to 12,100
I                   - PG302 blank check did not work for big chips.
C                   - Variables begining with STOP were not possible.
!!!                 - Added XTAL 14.7456 and 29.4912 to Compiler Selection.
                      Since this is a sorted list it means that your old setting now
                      selects a different XTAL !! So please adjust it.
I                   - Added com 4-8 to available com ports for programmers.
C                   - Using LONG divison in an interrupt caused a problem when at the same time
                      in the main program a PRINT of a LONG was performed.
C                   - Pressing Backspace eats the last character.
CI                  - Added support for the ADUC812.
                      Look in help for CONFIG ADUC812 to set the DAC and ADC.
                      var=Getad(channel) does a single conversion.
C                   - Added multiple test with AND and OR :
                      If a>3 AND a < 5 AND c > 2 OR d = 4 Then
                      End if
                      Evaluated from left to right. () are not supported.
C                   - Added variable bit support :
                      Dim Idx as byte
                      P3.IDX = 1 'can now be used.
                      Before this release constant numbers were accepted for the index.
                      Of course it also works with a test:
                      for idx = 7 downto 0       'scan the bits in a byte
                        if var.idx = 1 Then
                          print "1";
                        else
                          print "0";
                        end if
                      next
C                   - Added limited support to 40*4 LCd displays that have 2 Enable lines:
                      CONFIG LCD = 40 * 4a
                      CONFIG LCDPIN = PIN , E1 = Pin, E2 = pin, etc.
                      To select between E1 and E2 you need to set the B register.
                      CLR B    'selects E1
                      Mov b,#1 'selects E2
                      LCD with a constant will work and also with strings.
                      To call the low level routines :
                      Mov a,#2  ; code into acc
                      Clr b      ; or use Mov b,#1
                      acall LCD_CONTROL  ; call routine
                      To send data use the low level routine
                      WRITE_LCD instead of LCD_CONTROL
I                   - Completed Variable watch in simulator. tests like >=,<=,<>,>,< can be used too now.
I                   - Simulator now also supports simulation of GATE control via INT0/INT1 pins.
C                   - The line continuation must end with  _ <SPACE>_
IC                  - Changed error handling. A listbox is shown now and you can double click to jump
                      to the error line. This prevents you from multiple pressing the Error dialogbox.
                      And it is the same as BASCOM-AVR. (I experiment with different techniques to implement the best
                      in both compilers).
C                   - Added $NONULL directive for text DATA lines. This way a null is not added
                      after the text. Only useful is specific cases.
                      $NONULL = 0 'normal mode
                      $NONULL = -1 'dont generate 0 after text data
                      DATA  "AAA", "BBB"  'normal after AAA a 0 is inserted to seperate the data.
                      'Now the null is omitted.
C                   - Added 'language' support to the LookupStr() function
                      2 additional parameters are needed : string = LookUpStr(idx,label,language,20)
                      Lookupstr() with 2 params will work the same as always.
                      Language is a byte variable that may be 0-255.
                      The idea is that each language has its own DATA lines :
                      label:
                      DATA "US" , "sample   "
                      DATA "NL" , "voorbeeld" '
                      DATA "DE" , "beispiel " 'sorry if spelled wrong
                      When language is 0 the US data will be returned.
                      When language is 1 the dutch text will be returned.
                      The size param is the size of each language block.
                      In this case : 2 + 1 null + 9 + null = 13
                      I will add something more convenient later (when there are users that want it!)
I                   - Sub routines are completely shown now in the editor dropdown box.
                      I also added a highlight to the selected SUB line.
I                   - Finally a solution was found for the EPROM SIMULATOR problem that
                      occured with the Elektor EPROM SIMULATOR.
C                   - Optimized BIT compares with constants.
C                   - Added support for var.1 = var.2. Previously the only way to set a bit
                      in a variables was to use SET or RESET.
C                   - READEEPROM with an integer/word variable for the address failed because of
                      wrong address assignment.
C                   - Moved FUSING code to the library and fixed a bug with 9.999 for example that needed an additional
                      '1'.
I                   - Added *.LIB to the Save As dialog.
1.20                - Added "A" notation for tests like:
                      Dim X As Integer
                      If X = "A" then 'when X = 65 the test will pass.
                      So it is just a handy way to refer to the ASCII value of a constant.
                    - Line continuation character added _
                      Use it for long CONFIG statements.
                    - Numeric input eats the SPACE character now for channel 1.(normal INPUT)
                      Let me know if this should be added to the other channel as well.
                    - Added break window to the Simulator:
                      You can add a variable that will be monitored.
                      When you add for example : A = 2
                      The simulator will BREAK when A becomes 2.
                    - Getad2051 added. This is a Beta and untested.
                      See the sample getad2051.bas
                    - $NOLCDINIT will not init the LCD display at start up.
                      So you must do it yourself before you use any of the LCD routines.
                    - Added option to show line numbers in the IDE.
                    - Added option to show statement help while you are typing.
                      The text is in the bascom.krf file that should be copied to the \BASCOM-8051 dir.
                      When somebody wants to add the assembler help please send me a copy!
                    - Added support for the 89C51 Philips chips :
                      PRIORITY SET|RESET source, level
                      Where source can be INT0,INT1,TIMER0,TIMER1, TIMER2, SERIAL or PCA
                      And level is a numeric constant in the range from 0-3.3 means highest priority level
                      ENABLE PCA 'is added for the 89C51 too. And of course
                      DISABLE PCA 'is added to disable the PCA interrupt.
                      The WATCHDOG timer is also supported:
                      START WATCHDOG will start the WD-timer.
                      It can not be stopped once it is running!
                      It must be cleared periodically in your program with the
                      RESET WATCHDOG statement. The WD-timer counts to 16384 and then it resets.
                      The time depends on the XTAL. The WD-timer is clocked with fOSC (XTAL).
                       
                    - Added XRAM version for Instr(). All strings must be of XRAM !
                      But this applies to all the string functions.
                    - Replace did hide the prompt after a first replacement.
                    - New feature added : use of servo's.
                      A maximum of 16 servo's can be used:
                      CONFIG SERVOS = 2 , SERVO1= P3.5, SERVO2=P3.7 'when servos=4, add SERVO3=.. etc.
                      Servo1 = 8   ' 800 uS
                      Servo2 = 12  '1200 uS
                      The servo pulse will be updated once in the 100 uS so the resolution is 100 uS.
                      When you use the servo statements, TIMER0 interrupt will be used.
                      To stop the pulses you must STOP TIMER0 or disable TIMER0.
                      See servo.bas
                    - Changed new TIMEOUT feature. It does not need the interrupt anymore.
                      Now it uses a LONG to count down.
                      INPUT "Name ",s [NOECHO] [TIMEOUT = 100000]
                      When you use the optional TIMEOUT, you must assign a number to it.
                      The number must fit in a LONG. When you assign 0 (TIMEOUT = 0), the delay
                      will be the longest as possible. Take in mind that when you use TIMEOUT once,
                      you must use it for every INPUT/INPUTHEX routine!
                    - Shiftin & Shiftout did not work correct with XRAM variables.
                    - Added Bin() function : returns a string in binary format of a numeric variable.
                    - EPROM emulator attached to LPT did not work right : a Timeout occured.
                    - For x = start TO 65535 failed for a WORD : it continued with 0 after 65535.
                    - Added program after compile option to automatic program a chip after a
                      succesful compilation.
                    - Microwire routines were tested and ok so added to Help.
                    - Terminal emulator did not show some characters after upload.
                      Fixed but I could not test it so if it still gives a problem let me know.
                    - PG302 saves the state of the LOCKBITS now and also has an Auto Lockbit feature.
                    ***** This is changed to the one mentioned above ***
                    - Added TIMEOUT option for serial input
                    - TIMEOUT = xx 'will enable this option.
                      xx is in range from 1 - 65000 in units of 100 uS.
                      So TIMEOUT = 10000 'will wait for 1 second for a character.
                      INPUT "number ", x  'ERR will be set to 1 when there is no input
                      The TIMEOUT option needs 4 bytes and uses the TIMER0 that is no usable for
                      the user anymore.
                    - Using a . in the directory name caused the programmed and simulator to fail.
                    - Added support for Elektronika Praktyczna hardware simulator.
                      See Options hw simulator.
                    - Rotating an int/word right failed because of type error.
                    - Fusing with 0 mask had a bug in showing 1 zero less the specified ones.

!! Important :create a sub directory named LIB under the BASCOM-8051 directory.
!! The file mcs.lib must be placed into this sub directory !!
CI 1.20             - I gave both the compiler and IDE the same main version.
C                   - Optimized ROTATE and put in LIB.
C                   - Working with LONG's in an interrupt routine caused a crash because not
                      all registers used by the LONG operations were saved.
C                   - Print Chr(array(i)) had a bug.
C                   - Added simulation of TIMER2 to the simulator. Note that only the TIMER2 of the
                      8252, 8032 and other compatible TIMER2's will be simulated!
I                   - Added an option to the Environment settings to display a SUB selection box.
                      This box will show all used SUB routines so you can jump fast to these subs.
C                   - Added INSTR() function.
                      pos=Instr([st,] source , find)
                      st is an optional starting value to start searching
                      source is the string to search
                      find is the string to find
                      Both strings must be of the same type.
                      No constants can be used and at the moment it only works for internal strings.
C                   - Added redirection to the INKEY() function too.
I/C                 - Removed BASCOM-LT support.
I                   - Added LIB manager to the IDE.
C                   - Added Min() function. This function will return the smallest value of an array.
                      Works on BYTE arrays only(yet)
                    - Added Max() function. This function will return the highest value of an array.
                      Works on BYTE arrays only(yet)
C                   - Added $LIB support.
                      $LIB "mylib.LIB" , "other.LIB"  'will register your library files
                      The library files must be placed into the LIB\ sub directory
                      $EXTERNAL routine1 [,routineN] 'will define which external ASM routines
                      your program will use
                      The MCS.LIB file will always be searched first. This in contrast with BASCOM-AVR.
                      At the moment there are only a few routines placed in the LIB because it takes time
                      to document them all. But it is a start :-)
I                   - The simulator timing is rewritten so you can use the tickinfo for calculating
                      the time a routine takes. The number of cycles according to the
                      datasheets are used. The tickcounter also had a bug in the display of the timing.
                      Note that the standard 8051 has a clock divider of 12. Other micros can have another divider.
C                   - When the TIMER0 and TIMER1 are configured to mode 0, assigning the
                      timer with a constant will place the bits in the right position.
                      That is in the 5 LSbits of TLx and the 8 bits of THx.
                      So COUNTER0 = 8192 will assign :
                                         TL0 = 0
                                         TH0 = 128
I                   - Now the colors in the editor are selectable.
                      Comment can be displayed in Italic and reserved words can be displayed in bold.
                      The environment settings have been rearranged.
I                   - Simulator RAM view window did not restore its state.
I                   - Added additional ports to the hardware simulator window.
I                   - A column with binary notation is added to the simulator.
                      You must remove old <project>.PRJ files before the column will be visible!
I                   - When CONFIG LCDPIN was used, the simulator did not simulate the LCD display.
                      This info is stored in the DBG file now so old programs should be compiler first before they
                      are simulated.
C                   - Added support for 80515C: INT3-INT8, and CAN can be enabled and disabled.
                      Also fixed the DAT file which had wrong vector addresses.
                      CONFIG BAUD is also modified so it will work with the modified internal baud generator
I                   - Show Result window is non-modal now so it stays open until you close it.
C                   - LOCATE statement had a bug I introduced with 1.0.0.18.
                      Variables in the upper 128 memory did not work right because a register was trashed.
C                   - Added new function : Rnd(limit) returns a byte or word with a Random number.
                      2 internal bytes are needed for the storage of the seed.
                      Limit is the maximum value the Rnd() function will return
C                   - Added check for Assembler statements with jump such as sjmp,djnz etc.
                      Now the assembler will check if the jump is not out of bound.
C                   - Added support for simple test with IF THEN
                      You can use: If var = 1 And var 2 =3 Then
                       or        : If var = 1 Or var 2 = 4 Then
                      At this moment you can only use ONE and or ONE or.
                      The ability to use real expressions needs a change in the compiler design and will be
                      added in the future.

C                   - I2CRBYTE did not worked for arrays.
C                   - Assembler did not recognized Mov ..,#B1001_0000 (the underscore)
C1.15b   11/03/1999 - Correction for CASE statement. Also 80C320.DAT is corrected because
                      some SFR's were not under the BIT section.


I.0.0.19            - Simulator did not allow to change the number in the HEX column. Added.
C1.15               - Added CASE start TO end to CASE statement
                    - CASE 1 TO 5 'will test the variable for a value >=1 and <= 5
                    - Added support for 80C320.
                    - Added $asciinumber to the DATA statement.
                    - When specifying special string characters this can be used.
                      DATA $34, "test"
                      The $34 will specify the ["]-character. Other string characters
                      can be made this way too. The value after $ is the ASCII value of the string.
                    - Simulator Parity bit in PSW was not displayed right.
                    - Fixed error in BCD() function in combination with LCD in bus mode.
                    - Improved WriteEEPROM and ReadEEPROM code. Also fixed bug for useage of upper 128 bytes of IRAM.
                    - PG302 lockbit programming did not worked for 89C52. Changed but not tested.
                    - INCR single was not supported.
I1.0.0.18           - Fixed problem with $REGFILE option. This produced wrong code in some cases.
                    - Added Log mode to the terminal emulator.
                    - Fixed Terminal close problem introduced with 'modal' support.
                    - When optimizing code for lookup I made an error in the byte lookup. Fixed.
                    - The terminal emulator was printing slow. Changed.
                    - CONFIG LCDPIN gave an error. New syntax is CONFIG LCDPIN = PIN, etc.
                    - Fixed LOCATE statement when used with XRAM vars. Also optimized the code.
                    - When the 128 bytes boundery was crossed with an IRAM integer/word/long, in
                      some cases the wrong addressing method was used(direct instead of indirect)  

C1.13               - Reserved words can be displayed with Bold font now.
                    - Added option to show terminal emulator Modal.
                    - COM2 for the 80517 and 80537 are now supported for INPUTBIN and PRINTBIN
                    - Added CTRL+J to Editor for writing fast code blocks.
                    - After succesfull Beta period I have implemented a new NT driver.(ioport.sys)
                      The ioport.sys file must be copied to the \winnt\system32\drivers directory
                      The TVICPORT driver may be removed when not used by other programs.
                    - Added XRAM window to the simulator for viewing/modify XRAM.
                    - Changed internal memory window to display ASCII as well.
                    - Addded BOOLEAN as a reserved word. BOOLEAN is the same as BIT.
                    - Added CONST to be compatible with QB/VB
                      The old syntax (Dim var as CONST 1) remains valid but
                      the new syntax is advised to be used:
                      CONST var = "text"
                      CONST var1 = 100234567
                      As you can see the CONST can now be used with string constants and longs/singles too.
                      The report file also shows the CONSTANTS in a seperate section.
                    - Added option : $NONAN will display 0.0 when the result of a single to string conversion is nan (not a number)
                    - Fixed Lookup() function. In combination with many data it did not work.




------------------This is the start of the file-----------------------------------------
-----------New info is placed at the begin of the file ---------------------------------
- 1.00     [12/05/1998] Initial release
- 1.01                  Changed LCD simulator so it will change size automatically.
                        Fixed CONFIG LCDPIN statement, it caused a serious error.
- 1.02     [12/19/1998] The Beta was compiled with Delphi 3 and the release with Delphi 4.
                        Unfortunately, these 2 versions differ at some points and this gave some trouble.
                        However, these bugs are tracked and removed.
                        Also the editor is a new one and wasn't tested in the Beta.
                        By now, the editor should work fine.
                      - Port access was not working under W95 : fixed Floating-point conversion routines worked with country settings, raising an error
                        For users who had set it to the ,(comma). Fixed. Therefore, you can set the decimal separator
                        back to , instead of .(point)
                      - When the bascom32.ini file was (re)created, the default font was wrong so the screen
                        looked very strange. Setting the editor font solved this, but is fixed now.
                      - The compiler code has been optimized for a great part now but I am still working on
                        it to improve the code.(writing and analyzing test sets is a daunting task)
                      - Starting a bas file from the explorer now opens it at startup.(when there is a dependency)
                      - There are new environment options now for the editor:
			smart tabs and key mapping for your favorite editor.
                      - The registers are shown with a different color now.
                      - Added 'step over' (SHIFT+F8) to the simulator. This to step over GOSUB and CALL's.
                      - Forgot to describe the new GETRC5 statement in the helpfile. : added
                      - Also the changes to the editor are in the helpfile now.
                      - Printing/preview will print the selected text.

1.003[not released]   - The LCD designer generated a 0 for a blank row. This must be 32 because a 0 terminates the
                        initialization. Fixed.
                      - Pressing F1 didn't bring up the helpsystem. Fixed.
                      - Added prefix delay for HEX-monitor.
                        Also added delay for each character since some monitors are not fast enough to process a whole line.
                      - Changed working with $INCLUDE files. When an error is encountered,
                        the file will be loaded, and the error marker will set to the line that contains the error.
                      - Pointing over a variable in the simulator didn't show the value.Fixed.

                      - Added support for LPT based EPROM Emulators.(not tested)
                      - Added BASCOM LT compatibility DLL. This to allow to use the BASCOM LT compiler with the new IDE.
                        You can select this compiler from the Compiler settings. The generated code is the same as for BASCOM LT, so
                        new features do not work!
                        You need the BASLT32.DLL for the new version of the IDE!
1.004    [1/8/1999]   - fixed error in FOR .. DOWNTO when used with bytes
                      - On NT4 build 1083, I experienced that the icons of the margin did not appear. Not reported but Fixed.
                      - Added the 'bold' font attribute for the editor. It works best with Courier New. Courier gives strange output.
                      - Found a bug in the editor control : setting 2 bookmarks on 1 line, resulted in displaying the wrong images.
		      - Bug in internal routine caused long names to cause errors.
1.005    [1/23/1999]  - A label with spaces on the left caused an error. Fixed.
                      - New feature : $REGFILE = "file.DAT"
                        This will enable you to specify the register file from your program.
                        !!! Important is that this must be the first line in your program(comment not counting)
                        Example:
                        '---------------------------------
                        '------ REMARKS are no problem ----
                        $regfile = "89S8252.DAT"  'first line in program
                        wmcon = 3  'try it out
                       - INP() and OUT had a bug with XRAM variables : fixed.
                       - The LCD-designer now adds 224 to each byte since according to the Hitachi datasheet,
                         the 3 highest bits must be set to '1'.
                       - When using File .. Save As .. , the current filename was not set in the savedialog box. Fixed.
                       - Also changed the filename of new files. It is now noname1 for the first file instead of [untitled:1]
                         The question to give this file a name can be switched off.(Environment settings)
                         !!! Although it can speed things up when testing, it has the potential danger that an old nonameX file can be overwritten!!!
		       - using AND/OR in combination with 2 bit variables caused an error : fixed.
                       - using byte arrays in combination with calculation could lead to wrong results. Fixed.
                       - added delay for the simulator. Select the delay from the Hardware Simulator Options.
                         with the delay, you can better watch the states of the LED's.
		       - Feedback received: The LPT based EPROM Emulators support works.
                       - Some statements like SPIIN, where not referenced via F1. Fixed.
                       - The SE512/SE514 programmer is reset now at startup.
                         Also added hex loading/saving for this programmer.
                       - The PG2051 caused a GPF when reading files >2048 bytes : fixed.
                       - Changed the behavior of the GETRC5 statement. Now it works only together with the INT0 interrupts.
                         Look at the example for more details.
                       - Added GETRC(pin) statement. This statement can be used to get the value of a resistor/capacitor.
                         This function uses TIMER0 to measure the time between the discharge and charge of the capacitor.
                         Example:
                         Dim w as word
                         Set P1.1
                         w = Getrc(P1.1)  'get R or C value from pin P1.1

                       - Added software UART routines.
                         OPEN "COM3.0:9600" For Input as #1
                         OPEN "COM3.1:9600" For Output as #2
                         GET #1,var
                         PUT #2,var
                         Close #1
                         Close #2
                         See the comport.bas example for more details.

C[1.06       2/5/99]    - SPIIN & SPIOUT caused problems because I forgot to include a RET:fixed.
I[1.0.0.12   2/5/99]    - added HEX send file option to the LPT based EPROM-emulator. Set it from the programmer options.
                        - finally fixed the icons for the gutter.
                        - The bookmarknumbers are now shown on the gutter.
                        - Added the bookmarks to the right-mouse popup menu
                        - Clicking on the bookmark will remove the bookmark.
                        - hint for INT1 was not enabled in the simulator. Fixed
                        - pasting blocks didn't remove the selection. Fixed
			- $INCLUDE loaded the wrong file sometimes when an error occurred. Fixed
                        - Added accelerators to the main menu.(some were missing)
                        - The simulator didn't load the last register of the .DAT file.fixed
                        - The hardware simulation didn't work. Fixed
C[1.06   2/5/99]        - The LCD settings were not correctly read from the INI-file:fixed.
                        - SELECT CASE gave problems because there was an error in the parser.fixed
                        - Changed working of $INCLUDE : you don't have to specify the whole path anymore.
			  When you enter only the filename, the main program directory will be used.
                        - Added recognition of CONSTANTS to the DIM array() statement.
                          DIM max as const 10
                          Dim ar(max) as Byte
                        - The order of address and command was reversed in the RC5.BAS example.
			- Assigning constants didn't work. fixed
C[1.07  2/20/99]        - Changed behavior of reading and setting the TIMER/COUNTER's
                          They were stopped before reading/writing and started afterwards,
                          but this can lead to problems in some cases. So now the timer is stopped,
                          and after the reading/writing to COUNTERx, you must start it yourself.
                          Example:
                          var = COUNTER0  'read TIMER/COUNTER0
                          START COUNTER0  'start it (if required)
                        - changed TIMER2C.BAS sample : '( is the begin of block comment and so you could not insert code
                          because there was no block end.
                        - changed RC5.BAS example : SET TCON.0 works better than CLR TCON.O because it is falling edge triggered.
                        - The report showed wrong value for maximum code size(it was in HEX representation). Changed to decimal representation.
                        - Added SET/RESET to the LONG type:
                          Dim L as Long
                          Set L.31  'make negative
                        - Added option for I2C timing.
                          By default the following delay routine is called with an ACALL :
                            Delay5:
                            Nop
                            Ret
                          For 12 MHz, there is a 1 MHz system clock. So not counting the other statement, the minimal delay is
                          4 * 2 = 8 cycles. Some users want faster and other slow I2C, so I added :
                          CONFIG I2CDELAY = const  'where 1 is default and 0 will generate higher freq and a higher value, a lower freq.


I[1.0.0.13  2/20/99]    - The parallel Eprom Simulator sent the wrong values(the value instead of the ASCII value).Fixed
			- Enhanced Flash programmer so that changes to the hex-values,are saved. So now, you have the chance to chance the binary
                          image before you send it to the flashrom (or disk).
                        - Fixed a bug in the SE514 programmer/simulator. It didn't recognize the manufacture of the chip.
                        - Added CTRL+ALT+V to the simulator in the variable window.
                          This allows you to get a lookup list of the variables, and will display
                          the familiar BASCOM LT 'modify variable window' for modifying variables.
                        - Added support for the DL2TM programmer.
                        - Changed timing for Blow IT programmer. port delay settings are not needed any longer.
                        - Changed the simulator delay so that it will delay in mSecs.
C[1.08      3/8/99]     - Fixed error in 16-bit division routine.
I[1.0.014   3/8/99]     - Added chr(10) (line feed) to the EPROM simulator because some systems expect a chr(10).
                        - Moved the external programmer support from the MONITOR settings to the Programmer settings.
                          By pressing F4, the external program can be started now.
                        - Added hex view of variables in the simulator.
                          This only works for new programs, or you must delete the
                          <program>.PRJ  file.
                          Otherwise the new column with HEX-values is not visible.
                        - The right margin can be switched off now from the environment settings.

C[1.09    3/28/99]      - The Getrc() function didn't work because of the change to the COUNTERx assignment. Fixed.
                          The TIMER0 is now only started in the GETRC function and is stopped when the function returns.
                        - Single operations now can deal with integers/word directly.
                          In the past you had to convert singles to int/word first or vise versa.
                          Now you can mix these types.
                          Only one restriction : the non-single variable must be the last parameter.
                          So Single = single + integer/word  works
                             Single = integer/word + single does not work
                        - Added LCDINIT statement.
                          It is called automatic on start up when you use LCD statements.
                          Nevertheless, when you want to save power and want to use the LCD after a 'sleep'
                          you can use the LCDINIT statement to initialize it again.
                        - GetAD() did not work in combination with BAUD1.
                          BD was cleared. Fixed.
                        - No warning was given when an ACALL exceeded the current page. Fixed.
                        - Added $MAP option. This directive will include a map in the report
			  that shows the starting address of each line number.
                        - Changed WAITMS routine. Vladimir Mitrovic provided us with a more accurate routine.
                          It also assumes a 12 MHz clock.
                        - Added array support to the 1WIRE statements.
                          1WWRITE ar(1) , 10 'will now transmit 10 bytes from array AR, starting at the first element.
                          A byte array must be used or a string variable since all bytes is sent sequential.
                          ar(1) = 1WREAD(10) 'will read 10 bytes and will place it into array AR, starting at element 1.
                          Of course 10 is just an example. The optional number also assumes a byte array.
                          But of course the routines can be used with any variable type.
                          For an INTEGER use 2, as the parameter for example.


I[1.0.015   3/26/99]    - The parallel printer emulator didn't took in account the BUSY signal. Fixed component.
                        - The SE512/514 did not work with the AT89S8252. Fixed.
                        - Added an option to the environment options so you can enter
                          a default location for your files.
                          When it is empty, the BASCOM-8051 directory is used(default)
                        - Changed the external programmer so that it will change to the directory of the external
                          programmer. This because the programmer could need some additional files that is stored there.
                        - Int processing was disabled after a first run in the simulator in combination with the TIMERS. Fixed.

C[1.10 30/4/99]         - Added support for _ in variable assignment for binary notation.
                          For example :  var = &B1001_1001  'this reads better in your code
                          Note that it only works with &B
                        - Fixed error in single line IF THEN in combination with SELECT CASE.
                        - Changed timing routines WAITMS and WAIT so they take the crystal frequency into account
                          This means that timing is now independent of the crystal you use.
                        - The $MAP option didn't show the HEX address, but the decimal address.
                        - Fixed error in floating point when comparing both negative values.
                        - The HEXVAL() function did not work correct with "cc" and "dd". Fixed.
                        - Comparing negative floating point values didn't worked correct. Fixed.
                        - The $REGFILE statement didn't work correct for singles. Fixed.
                        - The SOUND statement now will have the double pin high/low delay when XTAL > 12 MHz is used.
                          The duration(number of pulses) is unchanged.
                        - Some internal used flags were not cleared and this gave problems for some chips. Fixed.
                        - The ROTATE RIGHT statement didn't work correct for non-byte variables. Fixed.
                        - The BIN file was always created. Now it will be only created when selected or when the Debug file is selected.
                        - OUT was generating unnecessary code. Eliminated.
                        - Constants can now be assigned to bit variables.
                          Dim On as Const 1, Dim f as Bit
                          f = on
                        - Fixed the parser: words with REM in it were seen a comment.
                        - Assigning Longs to integers/words, destroyed other variables in memory. Fixed.
                        - {} for XRAM variables with ASM programming did not work for values > 255.Fixed.
                        - Priority setting for the 80535/80537 didn't function properly due a bug in my compiler. Fixed.
                        - Assigning XRAM variable from COUNTERx failed. Fixed.
                        - Added device support (#1) to INPUTBIN and PRINTBIN.
                        - Added support to PRINT statements.
                          CONFIG PRINT = P1.1
                          CONFIG PRINTMODE = SET/RESET
                          This will SET pin P1.1 before a variable/constant is printed and
                          after the printing is finished, the pin state will be reversed.
                          This is the same as :
                          SET P1.1
                          PRINT var ; "test"
                          RESET P1.1


I[1.0.0.16  30/4/99]    - Changed the Hex grid for the SE512/514, MCS Flash, TAFE and others so that
                          you can change the ROM-values. ASCII editing is also supported.
                        - Added auto-flash feature to the SE512/SE514.
                        - Additional Interrupt buttons were not always displayed correctly in simulator.
                        - The external programmer now uses the short format for compatibility with 16 bit DOS/WIN programs.
                        - Also added to the external programmer options :
                          A choice from which directory the program is executed

C[1.10b]                - With the change of the WAITMS routine, I introduced a bug. It  only waited for 1 mS.
                        - ASC( "constant"), didn't return the correct byte.
                        - $REGFILE statement generated extra orgs in combination with a default setting
                          that contained more interrupt vectors. This way the reset vector pointed to the wrong address.


I[]                     - LCD designer did not generate correct values for an empty line.
                        - Sending HEX file to LPT based emulator kept the file open. So HEX files could not be created anymore.
                        - The simulator didn't show the correct execution time in mSec for crystals other than 12 MHz.
                        - The simulator didn't took IE.0 and IE.4 into account(into and int1 enable),and was always processing the INT's when the button was pressed.

C[1.11 07/12/1999]      - ' can be used as comment in ASM lines too now.
                        - variables starting with DEF were not recognized, because they were interpreted as DEFxxx.
                        - arrays bigger than 32K were not handled correctly.
                        - added more features to FUSING(). See help
                        - printing a SFR did not work correct.
                        - math operations on a byte and a byte constant where the result was an integer,word or long did return only the byte.
                        - added SHIFT statement. It behaves just like the ROTATE statement but it will shift out the bits to the left or right.
                          Example:  Dim W as WOrd : W = 128 : Shift W , left : 'W = 256 now
                                    Set W.15 : Shift W,left : 'w = 512 now
                                    W = 4 : Shift W, Right , 2 : 'w =1 now
                                    Shift W, right 'w = 0 now
                        - Added more support to ALIAS. Now it also enables you to do:
                          Dim A As Byte : M Alias A.0 : N Alias A.1 : Set M : Set N
                          If M = N Then
                          End If
                        - Added LowW() function and HighW() function to retrieve the 2 lowest bytes of a LONG and assign it to
                          a WOrd or Integer.
                          Dim L As Long, W As Word: L = 12345678 : W = Loww(L) : W = HighW(L)

                        - The 80552.dat file did not contain the TMH2 and TML2 registers.
                        - The 80537/80517 second serial port was not correctly intitialized.
                        - Reading a Word/Integer from a DATA line did not assign the Integer/Word correctly for internal Integers/Words.
                        - Assigning Str() to a small string did not work because Str() always needed a big string(10 characters).Now it use the buffer for conversion first.
                        - Added PRE parameter to SHIFTIN. When you end your SHIFTIN statement with PRE, the data input
                          will be sampled before the clock pulse is generated.
                          SHIFTIN pinin,pinclock,var,parameter [PRE]
                          parameter  0 - MSB first ,clock low  (4)
                                     1 - MSB first,clock high    5
                                     2 - LSB first,clock low    6
                                     3 - LSB first,clock high     7
                                     4 - MSB first ,clock low,  use external clock
                                     5 - MSB first,clock high,  use external clock
                                     6 - LSB first,clock low,  use external clock
                                     7 - LSB first,clock high,  use external clock
                          PRE  sample before the clock is generated


C1.12               - First 2 bytes of XRAM were reserved for internal use.
                      These locations are now not reserved anymore.
                    - Added $SMALL directive for chips with 64 byte of Iram memory and only 2KB of code memory
                      such as the 87c751. These chips dont allow the LCALL statement. So only ACALL will be used

See top of file. History info will be placed on top of file.

 ************ IMPORTANT FOR SPI USERS ********************************************
 Atmel released a note that says that your application must
 wait for 500 mSecs, before it will alter any of the SPI-pins (P1)
 So when you use this, just add a WAIT 1 statement in your program
 before you use the P1 pins. Also use chips with suffix M or later.
 *********************************************************************************


--------------------- Misc info----------------------------------
Did you made a nice application that you want to share with other users?
Just mail it and I publish it on my website.
Please provide it with comment in English, German,Italian or Dutch.
-----------------------------------------------------------------

When updating the IDE the size of some windows can be different.
If you don't see the whole window you can delete the setting from the
ENVIRONMENT section in the BASCOM32.INI file which can be found in
your WINDOWS directory. For example :

You can delete the entire line Options = 0 1 -1 -1 -1 -1 56 67 534 390
to make sure the width and height will be displayed correctly.
You only have to do this when you have some trouble seeing the whole window.

[ENVIRONMENT]
MainForm=0 1 -1 -1 -4 -4 65 58 627 427
sim=0 1 -1 -1 -4 -4 26 47 634 469
rapport=0 1 -1 -1 -1 -1 16 40 495 342
frmTerminal=0 1 -1 -1 -1 -1 124 148 584 312
frmSpeedbar=0 1 -1 -1 -1 -1 88 88 441 388
frmFlash=0 1 -1 -1 -1 -1 132 55 615 403
Internal Registers=Yes
Options=0 1 -1 -1 -1 -1 56 67 534 390


